package com.cssw.fyzb.core.eao.video;

import com.cssw.fyzb.core.model.eos.VideoLikeEo;
import com.ydn.dbframe.plugin.activerecord.Page;

import java.util.Date;

/**
 * @author YangYiQun
 */
public interface VideoLikeEao {

    /**
     * 添加点赞视频信息
     *
     * @param userId
     * @param videoId
     * @param videoUserId 视频作者
     * @param title
     * @param media
     * @param cover
     * @param likeTime
     */
    void save(
            Long userId,
            Long videoId, Long videoUserId, String title, String media, String cover, Date likeTime
    );


    /**
     * 删除点赞视频信息
     *
     * @param userId
     * @param videoId
     */
    long delete(
            Long userId,
            Long videoId
    );

    Page<VideoLikeEo> pageByUserId(int pageNumber, int pageSize, Long userId);
}
